#ifndef IMAGEWIDGET_H
#define IMAGEWIDGET_H

#include <QLabel>

class ImageWidget : public QLabel
{
    Q_OBJECT

public:
    explicit ImageWidget(QWidget *parent = 0);
    ~ImageWidget();

signals:
    void imageList(const QStringList &files);

private:
    void getOpenFiles();

protected:
    void mouseReleaseEvent(QMouseEvent *e);
    void dropEvent(QDropEvent *e);
    void dragEnterEvent(QDragEnterEvent *e);
    void dragLeaveEvent(QDragLeaveEvent *e);
    void dragMoveEvent(QDragMoveEvent *e);

private:
    QStringList *imgFileList;
    QString *m_HistoryDir;
};

#endif // IMAGEWIDGET_H
